﻿; (function ($, window, document, undefined) {
    var myApp = window.myApp;
    var view = myApp.views.view;

    if (myApp.views.home == undefined)
        myApp.views.home = {};

    myApp.views.home.index = mvc.define(function () {
        return {
            template: "hello @model.name <a id='edit' href='#products'>Products</a>",
            init: function () {
                $("#edit").click(function () {
                    alert('edit');
                });
            }
        };
    }, view);
})(jQuery, window, document);